package cn.fj.basic.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    private Boolean success=true;
    private String msg="操作成功";



    /*返回当前对象*/
    public static JsonResult me(){
        return new JsonResult();
    }
    public static JsonResult msg(String msg) {
        return new  JsonResult(false,msg) ;
    }

}
